QT       += core gui serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

#更多调试功能请下载使用“瑞士军刀”：
#https://gitee.com/qsak/QtSwissArmyKnife/releases
#本软件有偿提供源代码，如有需要，请访问：
#https://item.taobao.com/item.htm?spm=a2oq0.12575281.0.0.50111debkiMYPw&ft=t&id=623959148757
#获取更多QQ开发资料，请加入Qt开发交流群：
#723516989
#软件开发定制、demo编写，请联系作者：
#2869470394

#Windows配置
win32 {
    RC_ICONS = Windows.ico
    msvc:{
        QMAKE_CXXFLAGS += -execution-charset:utf-8
    }
}

# 自动拷贝依赖
include(QtDemoSerialPortWidgetSetup.pri)

#编译目录配置
UI_DIR      = $$OUT_PWD/ui
MOC_DIR     = $$OUT_PWD/moc
RCC_DIR     = $$OUT_PWD/res
OBJECTS_DIR = $$OUT_PWD/obj

INCLUDEPATH += Src

SOURCES += \
    Src/main.cc \
    Src/MainWindow.cc

HEADERS += \
    Src/MainWindow.hh

FORMS += \
    Src/MainWindow.ui

CONFIG += c++11

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
